package com.nbjtjc.safe.activiti.mapper;

import com.nbjtjc.safe.activiti.model.ExtActTaskReassign;
import com.nbjtjc.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ExtActTaskReassignMapper extends MyMapper<ExtActTaskReassign> {

    /**
     * 根据任务id获取当前任务
     * @param taskId
     * @return
     */
    @Select("select * from ext_act_task_reassign where task_id=#{taskId} " +
            "and has_return =false order by  create_time desc limit 1")
    ExtActTaskReassign findByTaskId(String taskId);
}